package com.itheima.Test;

public class Test001 {
    //完成单例设计模式代码
    public static void main(String[] args) {
        Student s1 = Student.getInstance();
        Student s2 = Student.getInstance();
        System.out.println(s1);
        System.out.println(s2);
        Student02 s3 = Student02.getInstance();
        Student02 s4 = Student02.getInstance();
        System.out.println(s3);
        System.out.println(s4);
    }

}
